<html>
<head>
<style>
@page {
  size: 300px 300px;
}
td {
  border: 1px solid green;
}
</style>
</head>
<body>
<div style="border: 1px solid blue;">
<table style="border: 1px solid red;">
<caption style="border: 1px solid orange;">Caption</caption>
<tr><td>1</td><td>2</td></tr>
</table>
</div>
</body>
</html>
